/**
 * 
 */
package com.luginf.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @author Mouarf
 * 
 */
public class DateUtils {

	/**
	 * Format date to user
	 * @param date
	 * @param locale
	 * @return String
	 */
	public static String formatDateToLocale(Date date, Locale locale) {
		SimpleDateFormat dateFormat = (SimpleDateFormat) SimpleDateFormat
				.getDateInstance(SimpleDateFormat.SHORT, locale);
		return dateFormat.format(date);
	}

}
